package com.lys;

import javax.jws.WebService;

@WebService(serviceName = "helloService", endpointInterface = "com.lys.HelloService")
public class HelloServiceImpl implements HelloService {

	@Override
	public String helloCxf() {
		return "Hello CXF!";
	}

	@Override
	public String hello(String name) {
		return "Hello " + name;
	}

	@Override
	public User getUser(int id) {
		User user = new User();
		user.setId(id);
		user.setName("lg");
		return user;
	}

	@Override
	public void saveUser(User user) {
		System.out.println(user.toString());
	}

}
